package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cmfz_article")
public class CmfzArticle implements Serializable {
    /*CREATE TABLE `cmfz_article` (
  `article_id` int(100) NOT NULL AUTO_INCREMENT,
  `article_name` varchar(100) DEFAULT NULL,
  `article_image` varchar(200) DEFAULT NULL,
  `article_content` varchar(1000) DEFAULT NULL,
  `guru_id` int(100) DEFAULT NULL,
  `article_date` datetime DEFAULT NULL,
  PRIMARY KEY (`article_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;*/
    @TableId(value = "article_id",type = IdType.AUTO)
    private Integer articleId;
    private String articleName;
    private String articleImage;
    private String articleContent;
    private Integer guruId;
    private Date articleDate;
    @TableField(exist = false)
    private CmfzGuru cmfzGuru;
}
